<?php
$con=mysqli_connect("localhost","root","root","yt");
mysqli_query($con,"SET NAMES UTF8");

if(!$con){
    //die终止全局代码执行
    die("数据库连接错误".mysqli_error($con));
}
